package com.example.blog.dao;

import com.example.blog.dto.FavoriteDTO;
import com.example.blog.pojo.Favorite;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
@Mapper
public interface FavoriteDao {

    List<FavoriteDTO> list(Integer id);

    int deleteFavorite(Integer id,Integer userid);

    Integer addFavorite(Integer userid, Integer articleid, LocalDateTime createtime);

    Favorite findFavorite(Integer userid,Integer articleid);


}
